package com.my.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.my.model.common.dtos.PageResponseResult;
import com.my.model.common.dtos.ResponseResult;
import com.my.model.wemedia.dtos.WmMaterialDto;
import com.my.model.wemedia.pojos.WmMaterial;
import org.springframework.web.multipart.MultipartFile;


public interface WmMaterialService extends IService<WmMaterial> {

    /**
     * 上传图片
     */
    ResponseResult uploadPicture(MultipartFile multipartFile);

    /**
     * 展示图片素材
     * @param wmMaterialDto
     * @return
     */
    PageResponseResult findList(WmMaterialDto wmMaterialDto);

    ResponseResult deleteMaterial(Integer id);
}
